reflect.Value.typ (method)
110 uses
reflect (current package)
deepequal.go#L42: if v1.typ().PtrBytes == 0 {
makefunc.go#L103: fl |= flag(v.typ().Kind())
makefunc.go#L104: rcvr := Value{v.typ(), v.ptr, fl}
value.go#L96: func (v Value) typ() *abi.Type {
value.go#L109: if v.typ().Size() != goarch.PtrSize || !v.typ().Pointers() {
value.go#L120: t := v.typ()
value.go#L288: return Value{ptrTo(v.typ()), v.ptr, fl | flag(Pointer)}
value.go#L321: if v.typ().Elem().Kind() != abi.Uint8 {
value.go#L327: if v.typ().Elem().Kind() != abi.Uint8 {
value.go#L334: n := int((*arrayType)(unsafe.Pointer(v.typ())).Len)
value.go#L344: if v.typ().Elem().Kind() != abi.Int32 {
value.go#L402: t := (*funcType)(unsafe.Pointer(v.typ()))
value.go#L792: if v.typ() == nil {
value.go#L889: if v.typ().Kind() == abi.Interface {
value.go#L890: tt := (*interfaceType)(unsafe.Pointer(v.typ()))
value.go#L906: rcvrtype = v.typ()
value.go#L907: ms := v.typ().ExportedMethods()
value.go#L912: if !nameOffFor(v.typ(), m.Name).IsExported() {
value.go#L915: ifn := textOffFor(v.typ(), m.Ifn)
value.go#L917: t = (*funcType)(unsafe.Pointer(typeOffFor(v.typ(), m.Mtyp)))
value.go#L927: t := v.typ()
value.go#L1177: return v.typ().Len()
value.go#L1181: if v.typ().Elem().Kind() == abi.Array {
value.go#L1182: return v.typ().Elem().Len()
value.go#L1229: if v.typ().NumMethod() == 0 {
value.go#L1244: if ifaceIndir(v.typ()) {
value.go#L1265: tt := (*ptrType)(unsafe.Pointer(v.typ()))
value.go#L1280: tt := (*structType)(unsafe.Pointer(v.typ()))
value.go#L1316: if v.Kind() == Pointer && v.typ().Elem().Kind() == abi.Struct {
value.go#L1339: if v.Kind() == Ptr && v.typ().Elem().Kind() == abi.Struct {
value.go#L1341: return Value{}, errors.New("reflect: indirection through nil pointer to embedded struct field " + nameFor(v.typ().Elem()))
value.go#L1356: if f, ok := toRType(v.typ()).FieldByName(name); ok {
value.go#L1367: if f, ok := toRType(v.typ()).FieldByNameFunc(match); ok {
value.go#L1403: tt := (*arrayType)(unsafe.Pointer(v.typ()))
value.go#L1426: tt := (*sliceType)(unsafe.Pointer(v.typ()))
value.go#L1597: if v.typ().Equal != nil && v.typ().Size() <= maxZero {
value.go#L1604: return v.typ().Equal(noescape(v.ptr), unsafe.Pointer(&zeroVal[0]))
value.go#L1620: if v.typ().Equal != nil && v.typ().Size() <= maxZero {
value.go#L1625: return v.typ().Equal(noescape(v.ptr), unsafe.Pointer(&zeroVal[0]))
value.go#L1688: typedmemclr(v.typ(), v.ptr)
value.go#L1715: tt := (*arrayType)(unsafe.Pointer(v.typ()))
value.go#L1725: if v.typ().Elem().Kind() == abi.Array {
value.go#L1726: return v.typ().Elem().Len()
value.go#L1741: tt := (*mapType)(unsafe.Pointer(v.typ()))
value.go#L1752: if (tt.Key == stringType || key.kind() == String) && tt.Key == key.typ() && tt.Elem.Size() <= maxValSize {
value.go#L1754: e = mapaccess_faststr(v.typ(), v.pointer(), k)
value.go#L1763: e = mapaccess(v.typ(), v.pointer(), k)
value.go#L1780: tt := (*mapType)(unsafe.Pointer(v.typ()))
value.go#L1791: mapiterinit(v.typ(), m, &it)
value.go#L1851: t := (*mapType)(unsafe.Pointer(iter.m.typ()))
value.go#L1875: t := (*mapType)(unsafe.Pointer(iter.m.typ()))
value.go#L1880: key = key.assignTo("reflect.MapIter.SetKey", v.typ(), target)
value.go#L1881: typedmemmove(v.typ(), v.ptr, key.ptr)
value.go#L1894: t := (*mapType)(unsafe.Pointer(iter.m.typ()))
value.go#L1918: t := (*mapType)(unsafe.Pointer(iter.m.typ()))
value.go#L1923: elem = elem.assignTo("reflect.MapIter.SetValue", v.typ(), target)
value.go#L1924: typedmemmove(v.typ(), v.ptr, elem.ptr)
value.go#L1935: mapiterinit(iter.m.typ(), iter.m.pointer(), &iter.hiter)
value.go#L2010: if v.typ() == nil {
value.go#L2013: if v.flag&flagMethod != 0 || uint(i) >= uint(toRType(v.typ()).NumMethod()) {
value.go#L2016: if v.typ().Kind() == abi.Interface && v.IsNil() {
value.go#L2022: return Value{v.typ(), v.ptr, fl}
value.go#L2031: if v.typ() == nil {
value.go#L2037: return toRType(v.typ()).NumMethod()
value.go#L2046: if v.typ() == nil {
value.go#L2052: m, ok := toRType(v.typ()).MethodByName(name)
value.go#L2063: tt := (*structType)(unsafe.Pointer(v.typ()))
value.go#L2106: bitSize := v.typ().Size() * 8
value.go#L2151: if v.typ().PtrBytes == 0 {
value.go#L2201: tt := (*chanType)(unsafe.Pointer(v.typ()))
value.go#L2234: tt := (*chanType)(unsafe.Pointer(v.typ()))
value.go#L2260: x = x.assignTo("reflect.Set", v.typ(), target)
value.go#L2263: typedmemclr(v.typ(), v.ptr)
value.go#L2265: typedmemmove(v.typ(), v.ptr, x.ptr)
value.go#L2285: if toRType(v.typ()).Elem().Kind() != Uint8 { // TODO add Elem method, fix mustBe(Slice) to return slice.
value.go#L2296: if v.typ().Elem().Kind() != abi.Int32 {
value.go#L2386: tt := (*mapType)(unsafe.Pointer(v.typ()))
value.go#L2388: if (tt.Key == stringType || key.kind() == String) && tt.Key == key.typ() && tt.Elem.Size() <= maxValSize {
value.go#L2390: if elem.typ() == nil {
value.go#L2391: mapdelete_faststr(v.typ(), v.pointer(), k)
value.go#L2402: mapassign_faststr(v.typ(), v.pointer(), k, e)
value.go#L2413: if elem.typ() == nil {
value.go#L2414: mapdelete(v.typ(), v.pointer(), k)
value.go#L2425: mapassign(v.typ(), v.pointer(), k, e)
value.go#L2483: tt := (*arrayType)(unsafe.Pointer(v.typ()))
value.go#L2489: typ = (*sliceType)(unsafe.Pointer(v.typ()))
value.go#L2503: return Value{v.typ(), unsafe.Pointer(&t), v.flag}
value.go#L2545: tt := (*arrayType)(unsafe.Pointer(v.typ()))
value.go#L2551: typ = (*sliceType)(unsafe.Pointer(v.typ()))
value.go#L2637: typ := v.typ()
value.go#L2639: return toRType(v.typ())
value.go#L2645: if v.typ().Kind() == abi.Interface {
value.go#L2705: if v.typ() == nil {
value.go#L2731: if v.typ().PtrBytes == 0 {
value.go#L2832: t := v.typ().Elem()
value.go#L2865: st := (*sliceType)(unsafe.Pointer(v.typ()))
value.go#L2868: mapclear(v.typ(), v.pointer())
value.go#L2919: stringCopy = sk == String && dst.typ().Elem().Kind() == abi.Uint8
value.go#L2926: de := dst.typ().Elem()
value.go#L2928: se := src.typ().Elem()
value.go#L3063: tt := (*chanType)(unsafe.Pointer(ch.typ()))
value.go#L3094: tt := (*chanType)(unsafe.Pointer(ch.typ()))
value.go#L3280: case directlyAssignable(dst, v.typ()):
value.go#L3287: case implements(dst, v.typ()):
value.go#L3307: panic(context + ": value of type " + stringFor(v.typ()) + " is not assignable to type " + stringFor(dst))
value.go#L3317: op := convertOp(t.common(), v.typ())
value.go#L3319: panic("reflect.Value.Convert: value of type " + stringFor(v.typ()) + " cannot be converted to type " + t.String())
|
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |